package com.zhousb.deviceManager.model.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("sys_user")
public class SysUser {
    private Long id;
    private String userName;
    @JsonIgnore
    private String password;
    private String realName;
    private Long tenantId;
    private String userTel;
    private String sex;
    private String email;
    private String userIdCard;
    private String avatar;
    private Integer isLock;
    private String lastLoginIp;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoginTime;
    @TableLogic
    @JsonIgnore
    private Integer deleteFlag;
}
